;(function($) {
	$.fn.extend({
		hotkeys : function(type, fn) {
			handle = type.match(/keypress|keydown|keyup/g);
			if(handle !== null)
				this.bind(type, {
					"fn" : fn
				}, function(event) {
					if(event.shiftKey === false && event.ctrlKey === false && event.altKey === false)
						return event.data.fn.apply(this, [null]);
					if(event.keyCode < 65 || event.keyCode > 90)
						return event.data.fn.apply(this, [null]);
					var arrCombi = [];
					if(event.shiftKey === true)
						arrCombi.push("shift");
					if(event.ctrlKey === true)
						arrCombi.push("ctrl");
					if(event.altKey === true)
						arrCombi.push("alt");
					arrCombi.push(String.fromCharCode(event.keyCode).toLowerCase());
					var strCombi = arrCombi.join("+");
					return event.data.fn.apply(this, [strCombi]);
				});
		}
	});
})(jQuery);
